import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.SetMaxBudgetEvent;
import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.InventionVO;

[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function setMaxBudget():void
{
	var vo:InventionVO	=	model.currentInvention;
	
	vo.maxBudget		=	int(maxBudget.text);
	
	var setMaxBudget:SetMaxBudgetEvent	=	new SetMaxBudgetEvent(vo);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(setMaxBudget);
}